Make fresh_builds_possible_with_multiple_metadata_overrides faster
authorNathanael Jones <nathanael.jones@gmail.com>
Tue, 7 Feb 2017 00:22:36 +0000 (17:22 -0700)
committerNathanael Jones <nathanael.jones@gmail.com>
Tue, 7 Feb 2017 00:22:36 +0000 (17:22 -0700)
src/cargo/ops/cargo_rustc/custom_build.rs
tests/build-script.rs

index 4315598689b847144e805358b9b078864ee63d61..e187ab80066facb25924e3af82afb690ddc57609 100644 (file)
@@ -408,7 +408,7 @@ impl BuildOutput {
     }
 
     /// Sort the contents of the struct for consistent hashing. 
-    /// Suggested if populated from a HashMap instead of a order-preserving data source
+    /// Suggested if populated from a HashMap instead of an order-preserving data source
     pub fn sort(&mut self){
         self.library_paths.sort();
         self.library_links.sort();
index 822063bf125ff47d596cb22a990519315a4bef6f..660ce1e71a0fc3e255bf919e9ac35b1776fcbb40 100644 (file)
@@ -1812,8 +1812,6 @@ fn fresh_builds_possible_with_multiple_metadata_overrides() {
 [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
 "));
 
-    sleep_ms(2000);
-
     assert_that(p.cargo("build").arg("-v").env("RUST_LOG", "cargo::ops::cargo_rustc::fingerprint=info"),
                 execs().with_status(0).with_stderr("\
 [FRESH] foo v0.5.0 ([..])